//
//  sendMessageReceipt.m
//  tcpoctest
//
//  Created by gump on 6/14/13.
//  Copyright (c) 2013 gump. All rights reserved.
//

#import "sendMessageReceipt.h"

@implementation sendMessageReceipt

-(void)SendMegReceipt:(NSString *)strMegID
{
    //发送 100char(1),100char(1)，
    //消息ID长度char(1),消息ID长度char(x)
    if (![self CheckLogin]) {
        return;
    }
    
    int l = CHAR_PL * 3 + INT_PL + [strMegID length];
    
    [self initDataByLength:l];
    
    [sb WriteChar:[strMegID length]];
    [sb WriteString:strMegID withLength:[strMegID length]];
    
    [self Package];
}

@end
